Create a query
- In Microsoft Excel, on the Data menu, point to Get External Data, and
then click New Database Query.
- Select the data source you want, and then enter the requested information. For help with this step, see the documentation that came with your ODBC drivers.
- In the Tables pane, use the Tables palette to add the tables you want.
If the Tables palette is not displayed, click Show Tables.
- In the Fields pane, add the fields you want to appear in the result set.
- Click Test! to display the result set in the Data pane.
- When you finish retrieving the data you want, click Return Data to return the result set to Microsoft Excel.
Notes
- If you want to narrow your result set to include specific records, enter criteria in the Fields pane
to filter the records.
- If you want to change the result set, create an inner join or
outer join between your tables in the Tables pane.
Related topics
Setting up Microsoft Query to use a data source
Add a table to a query
Add or remove fields
Create a join
About using criteria
How joins affect the result set in a query
Return a result set to Microsoft Excel